import requests

headers = {
    "referer": "https://www.dongchedi.com/usedcar/x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
}

url = "https://www.dongchedi.com/motor/pc/sh/sh_sku_list"
params = {
    "aid": "1839",
    "app_name": "auto_web_pc"
}
data = {
    "sh_city_name": "全国",
    "page": "1",
    "limit": "20"
}
response = requests.post(url, headers=headers, params=params, data=data)

res = response.json()
for item in res['data']['search_sh_sku_info_list']:
    title = item['title']
    price = item['sh_price']
    official = item['official_price']
    result = {
        'title': title,
        'price': price,
        'official': official
    }
    print(result)
    break
